/* eslint-disable no-unused-vars */
const PORT = 8600;
const {
  AJAX_PREFIX,
  BASE_NAME,
  MOCK,
  NODE_ENV,
  PUBLIC_URL,
} = process.env;

const IS_DEV = NODE_ENV === 'development';
module.exports = {
  PORT,
  PUBLIC_PATH: `http://localhost:${PORT}/`,
  BASE_NAME: '',
  AJAX_PREFIX: '/api',
  AJAX_TIMEOUT: 1000 * 60,
  TITLE: 'React Main',
  IS_DEV,
  EMP: {
    name: 'reactMain',
    remotes: {
      '@jkyu/rb': 'reactBody@http://localhost:8601/demo/reactBody.js',
    },
    exposes: {
      './AppRouter': 'src/router/AppRouter',
    },
    shared: [
      'react',
      'react-dom',
      'antd',
    ],
  },
  EXTERNALS: [
    {
      name: 'moment',
      root: 'moment',
      js: [
        '/externals/js/moment.2.29.1.min.js',
        '/externals/js/moment.2.29.1.zh-cn.js',
      ],
    },
    {
      name: 'react',
      root: 'React',
      js: '/externals/js/react.production.17.0.1min.js',
    },
    {
      name: 'react-dom',
      root: 'ReactDOM',
      js: '/externals/js/react-dom.production.17.0.1.min.js',
    },
    {
      name: 'antd',
      root: 'antd',
      js: '/externals/js/antd.4.9.4.min.js',
      css: '/externals/css/antd.4.9.4.min.css',
    },
  ],
};
